menuitem: Draw background unconditionally
authorBenjamin Otte <otte@redhat.com>
Thu, 11 Oct 2012 09:48:32 +0000 (11:48 +0200)
committerBenjamin Otte <otte@redhat.com>
Wed, 31 Oct 2012 10:09:10 +0000 (11:09 +0100)
gtk/gtkmenuitem.c

index 576a64a15cfeaa7f2ce9ac194e144b0b5db91ee9..bf2d3bb64076403e0fd9ab5d3070df793a0829cb 100644 (file)
@@ -1719,11 +1719,8 @@ gtk_menu_item_draw (GtkWidget *widget,
 
   gtk_style_context_get_padding (context, state, &padding);
 
-  if (child && (state & GTK_STATE_FLAG_PRELIGHT))
-    {
-      gtk_render_background (context, cr, x, y, w, h);
-      gtk_render_frame (context, cr, x, y, w, h);
-    }
+  gtk_render_background (context, cr, x, y, w, h);
+  gtk_render_frame (context, cr, x, y, w, h);
 
   if (priv->submenu && !GTK_IS_MENU_BAR (parent))
     {